package com.motong.gongdan.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import com.motong.gongdan.vo.system.otherVo.StockProductVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author:fff
 * @time:2022/3/8
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("stock_msg")
@Accessors(chain = true)
public class StockMsg extends PublicPo{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer type;
    private Date time;
    @TableField("type_other")
    private String typeOther;
    private String code;
    private String comment;
    @TableField("create_id")
    private Integer createId;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField(updateStrategy = FieldStrategy.IGNORED,value = "other")
    private String other;

    @TableField(exist = false)
    private List<StockProductVo> productList;

    @TableField(exist = false)
    private List<CustomFieldVo> customFieldVos;

    @TableField(exist = false)
    private JSONArray customFieldMess;


    @ApiModelProperty("商品明细相")
    @TableField(exist = false)
    private StockDetail stockDetail;

}
